package com.system.common.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods")
public class Goods implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name;
    private String description;//商品描述
    private BigDecimal price;//原价
    private Integer stock;//库存
    private Integer sales;//销量
    private String image;
    private Integer typeid;//商品类型id
    private Integer status;//0:下架 1:上架
    private Date createtime;
    private Date updatetime;
    @TableLogic
    private Integer isdel;

    @TableField(exist = false)
    private Type type;

}
